package 队列.数组队列;

import 栈.ArrayStack;

public class test {
    public static void main(String[] args) {
        ArrayQueue<Integer> queue = new ArrayQueue<>();
        for (int i = 0; i < 5; i++) {
            queue.enqueue(i);
        }
        System.out.println(queue.toString());
        queue.dequeue();
        System.out.println(queue.toString());
        queue.dequeue();
        System.out.println(queue.toString());
        queue.enqueue(5);
        System.out.println(queue.toString());
        System.out.println(queue.getFront());
    }
}
